
object ListDemo {
  def main (args: Array [String]): Unit = {
  }
  val initialActivities = List ("Python 入门讲座", "算法竞赛培训")
  val allActivities = "Scala 集合实践" :: initialActivities
  println ("编程社团活动列表:")
  for (activity <- allActivities) {
    println ("-" + activity)
  }
  println(s"共${allActivities.size}场活动")
  }
